package com.jiangli.utils.Sreach;

/**
 * Redis键名工具类
 */
public class RedisKeyUtils {
    // 菜品详情缓存：dish:info:{id}
    public static final String DISH_INFO = "dish:detail:";

    // 菜品倒排索引：dish:index:{keyword}
    public static final String DISH_INDEX = "dish:index:";

    // 搜索候选词库：dish:candidates
    public static final String DISH_CANDIDATES = "dish:candidates";

    // 热门搜索词：dish:hot
    public static final String DISH_HOT = "dish:hot:";

    // 商家详情缓存：merchant:detail:{id}
    public static final String MERCHANT_INFO = "merchant:detail:";

    // 商家倒排索引：merchant:index:{keyword}
    public static final String MERCHANT_INDEX = "merchant:index:";

    // 搜索候选词库：merchant:candidates
    public static final String MERCHANT_CANDIDATES = "merchant:candidates";

    // 热门搜索词：merchant:hot:
    public static final String MERCHANT_HOT = "merchant:hot:";


    // 商家详情缓存：merchant:detail:{id}
    public static final String INGREDIENT_INFO = "ingredient:detail:";

    // 商家倒排索引：merchant:index:{keyword}
    public static final String INGREDIENT_INDEX = "ingredient:index:";

    // 搜索候选词库：merchant:candidates
    public static final String INGREDIENT_CANDIDATES = "ingredient:candidates";

    // 热门搜索词：merchant:hot:
    public static final String INGREDIENT_HOT = "ingredient:hot:";
}
